<?php
/**
 * Created by PhpStorm.
 * User: o0无忧亦无佈(285753421@qq.com)
 * Date: 15-2-16
 * Time: 下午9:53
 */

function order_state($state){

    $CI =& get_instance();
    $CI->config->load('order');

    $order_state = $CI->config->item('state');
    $str_state = '';
    if($state){
        foreach($order_state as $key=>$v){
            if($v==$state)
            {
                $str_state = $key;
                break;
            }
        }
    }
    return $str_state;
}
